package com.diamond.bo;

import java.io.Serializable;

import com.diamond.util.DiamondUtil;


public class ClientOrderBO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8801582769375500558L;

	private Long cliOrdMasterId;
	private Long userId;
	private String orderNo;
	private String buyerName;
	private String userName;
	private String buyerTel;
	private String orderDate;
	private String orderStatus; //0:未处理,1:部分处理,2:全部处理
	private String orderStatusName;
	private String delState;
	private String delStateName;
	private String receiveDate;
	private String pickupWay;
	private String orderRemark;
	private String address;
	private Double total;            //总零售价格
	private Double midTotal;         //总经销价格
	private Double costTotal;        //总代理价格
	private String totalFormate;
	private String midTotalFormate;
	private String costTotalFormate;
	
	private String orderDateFr;
	private String orderDateTo;
	private String orderPriceFr;
	private String orderPriceTo;
	
	public Long getCliOrdMasterId() {
		return cliOrdMasterId;
	}
	public void setCliOrdMasterId(Long cliOrdMasterId) {
		this.cliOrdMasterId = cliOrdMasterId;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getBuyerName() {
		return buyerName;
	}
	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}
	public String getBuyerTel() {
		return buyerTel;
	}
	public void setBuyerTel(String buyerTel) {
		this.buyerTel = buyerTel;
	}
	public String getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}
	public String getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	public String getReceiveDate() {
		return receiveDate;
	}
	public void setReceiveDate(String receiveDate) {
		this.receiveDate = receiveDate;
	}
	public String getPickupWay() {
		return pickupWay;
	}
	public void setPickupWay(String pickupWay) {
		this.pickupWay = pickupWay;
	}
	public String getOrderRemark() {
		return orderRemark;
	}
	public void setOrderRemark(String orderRemark) {
		this.orderRemark = orderRemark;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Double getTotal() {
		return total;
	}
	public void setTotal(Double total) {
		this.total = total;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getOrderStatusName() {
		if ("0".equals(this.getOrderStatus())) {
			setOrderStatusName("未处理");
		}
		else if ("1".equals(this.getOrderStatus())) {
			setOrderStatusName("部分处理");
		} 
		else if ("2".equals(this.getOrderStatus())) {
			setOrderStatusName("全部处理");
		}
		return orderStatusName;
	}
	public void setOrderStatusName(String orderStatusName) {
		this.orderStatusName = orderStatusName;
	}
	
	public String getDelState() {
		return delState;
	}
	public void setDelState(String delState) {
		this.delState = delState;
	}
	public String getDelStateName() {
		if ("0".equals(this.getDelState())) {
			setDelStateName("未删除");
		}
		else if ("1".equals(this.getOrderStatus())) {
			setDelStateName("已删除");
		} 
		return delStateName;
	}
	public void setDelStateName(String delStateName) {
		this.delStateName = delStateName;
	}
	public Double getMidTotal() {
		return midTotal;
	}
	public void setMidTotal(Double midTotal) {
		this.midTotal = midTotal;
	}
	public Double getCostTotal() {
		return costTotal;
	}
	public void setCostTotal(Double costTotal) {
		this.costTotal = costTotal;
	}
	public String getCostTotalFormate() {
		return DiamondUtil.DoubleFormat(costTotal);
	}
	public String getTotalFormate() {
		return DiamondUtil.DoubleFormat(total);
	}
	public String getMidTotalFormate() {
		return DiamondUtil.DoubleFormat(midTotal);
	}
	public String getOrderPriceFr() {
		return orderPriceFr;
	}
	public void setOrderPriceFr(String orderPriceFr) {
		this.orderPriceFr = orderPriceFr;
	}
	public String getOrderPriceTo() {
		return orderPriceTo;
	}
	public void setOrderPriceTo(String orderPriceTo) {
		this.orderPriceTo = orderPriceTo;
	}
	public void setTotalFormate(String totalFormate) {
		this.totalFormate = totalFormate;
	}
	public void setMidTotalFormate(String midTotalFormate) {
		this.midTotalFormate = midTotalFormate;
	}
	public String getOrderDateFr() {
		return orderDateFr;
	}
	public void setOrderDateFr(String orderDateFr) {
		this.orderDateFr = orderDateFr;
	}
	public String getOrderDateTo() {
		return orderDateTo;
	}
	public void setOrderDateTo(String orderDateTo) {
		this.orderDateTo = orderDateTo;
	}
	
}
